﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="TopToolbar.ascx.cs" Inherits="Parts_TopToolbar" %>

<form method="post" action="Search.aspx" name="frmSearchTop">
            <div class="toolbar top-toolbar clearfix">
                <div class="left">
                </div>
                <div class="right">
                </div>
                <div class="center">
                    <div class="info">
                        <p>
                            Hôm nay có gì mới?
                        </p>
                        <a href="#" title="Learn more">Xem ngay</a>
                    </div>
                    
                    <div class="separator"></div>
                    
                    <div class="search-box">
                    
                        <span class="search-box-wrapper">
                            <input id="searchInputTop" name="searchInputTop" class="search-input" value="Tìm kiếm với tên và chủ đề" type="text">
                        </span>
                        <a class="search-button" href="#" id="searchSubmitTop" title="Go!">
                            <span></span>
                        </a>
                    
                    </div>
                    
                    <div class="separator"></div>
                    
                    <div class="category">
                        <div class="select-box clearfix browseCategories" id="browseCategories">
                            <div class="listHeader" id="listHeader">
                                <span>Duyệt các danh mục</span>
                                <a class="trigger"></a>
                            </div>
                            
                            <ul style="display: none;" class="list" id="list">
                                <li class="dropdownCross top">[X]</li>
                                <li class="dropdownCross bottom">[X]</li>

<%
    List<DanhMuc> lst = (List<DanhMuc>)Session["DanhMucs"];
    for (int j = 0; j < lst.Count; j++)
    {
%>
    <li>
        <input name="CateName" type="checkbox" value="<%= lst[j].CatID %>"/>
        <a href="Category.aspx?CateID=<%= lst[j].CatID %>"> <%= lst[j].CatName %></a>    
    </li>
<%
    }
%>
                            
                            </ul>
                        </div>
                    </div>
                </div>
            </div>

</form>